//
//  CollectionCycleCell.m
//  YuDou
//
//  Created by qiupeng on 2018/6/23.
//  Copyright © 2018年 yingqi. All rights reserved.
//

#import "CollectionCycleCell.h"
#import "CycleModel.h"


@interface CollectionCycleCell()

@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation CollectionCycleCell

- (void)awakeFromNib {
    [super awakeFromNib];

}

- (void)setCycleModel:(CycleModel *)cycleModel
{
    _cycleModel = cycleModel;
    self.titleLabel.text =  cycleModel.title;
    [self.iconImageView sd_setImageWithURL:[NSURL URLWithString:cycleModel.pic_url] placeholderImage:[UIImage imageNamed:@"Img_default"]];
}

@end
